package cn.tedu.tmall.admin.mall.service;

import cn.tedu.tmall.admin.mall.pojo.pram.MallCategoryAddParam;
import cn.tedu.tmall.admin.mall.pojo.vo.MallCategoryTreeVO;
import cn.tedu.tmall.admin.mall.pojo.vo.MallCategoryVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IMallCategoryService {
    @Transactional
    void add(MallCategoryAddParam mallCategoryAddParam);

    List<MallCategoryVO> topCategory();

    List<MallCategoryVO> topCategory(Long parentId);

    List<MallCategoryTreeVO> getAll();
}
